package com.tanhua.server.controller;

import com.tanhua.model.vo.QuestionnairesVo;
import com.tanhua.server.service.TestSoulService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/testSoul")
public class TestSoulController {
    @Autowired
    private TestSoulService testSoulService;

    @RequestMapping(method = RequestMethod.GET)
    public ResponseEntity testSoul() {
        List<QuestionnairesVo> questionnairesVoList = testSoulService.testSoul();
        return ResponseEntity.ok(questionnairesVoList);
    }
}